#include"server.hpp"
#include<thread>
DataManager *_data;
void jsonText()
{
    Json::Value root;
    root["姓名"]="张三";
    root["年龄"]=18;
    root["成绩"].append(85);
    root["成绩"].append(105);
    root["成绩"].append(60);
    string json_str;
    cloudBackup::JsonUtil::Serialize(root,&json_str);
    cout<<json_str<<endl;

    cloudBackup::JsonUtil::UnSerialize(json_str,&root);
   
}

void ServerText()
{
    Service _server;
    _server.RunModule();
}

void HotText()
{
    HotManager hot;
    hot.RunModule();
}
int main(int argc,char* argv[])
{
    _data=new DataManager();
    thread thread_hot_manager(HotText);
    thread thread_server(ServerText);
    thread_hot_manager.join();
    thread_server.join();

    return 0;
}
